package com.donn.securitycontrolplatform.emum;

/**
 * @ClassName ResultCode
 * @Author Glenn
 * @Date 2021/6/1 19:47
 * @Description ResultCode
 * @Version 2.1
 */
public enum RESULT_CODE {

    FILE_IO_EXCEPTION(101, "文件存储IO错误"),


    //成功状态码
    SUCCESS(200, "成功"),

    DAHUA_GET_AUTHENTICATE_FAIL(301, "请求大华认证接口失败"),

    DAHUA_REFRESH_TOKEN_FAIL(302, "请求大华刷新token接口失败"),

    DAHUA_ADD_USER_STORE_FAIL(303, "请求大华新增人像库接口失败"),

    DAHUA_ADD_USER_FAIL(304, "请求大华新增用户接口失败"),

    DAHUA_GET_WHITE_LIST_USER_STORE_FAIL(304, "请求大华查询白名单库接口失败"),


    PERSON_IMG_NOT_FOND(401, "人员头像不能为空");


    private Integer code;
    private String message;

    RESULT_CODE(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
